/*
 * @Author: your name
 * @Date: 2021-11-25 16:43:04
 * @LastEditTime: 2021-11-29 16:39:57
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /dome_umi/src/layouts/index.js
 */
import styles from './index.scss';
import {Layout} from 'antd'
import Header from './Header'
import Footer from './Footer'

const {Content} = Layout;
// 前端页面架构
function BasicLayout({location, children}) {

  if(location.pathname === '/login') {
    return (
      children
    )
  }
  return (
    <Layout className={styles['my-layout']}>
      <Header />
      <Content className={styles.content}>{children}</Content>
      <Footer />
    </Layout>
  );
}

export default BasicLayout;
